package com.handpay.zztong.hp;

import android.os.Bundle;
import android.widget.ImageView;

import com.handpay.zztong.hp.base.activity.ZZTongActivity;
import com.handpay.zztong.hp.bean.ActionBar;
import com.handpay.zztong.hp.config.ZZTConstant;

/**
 * @author sxshi on 2016/7/13.
 * @email:emotiona_xiaoshi@126.com
 * @describe:微信支付情景引导页
 */
public class HelpWechatPayActivity extends ZZTongActivity {
    private int type = -1;
    private ImageView iv_content;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_help_wechatpay);
        type = getIntent().getIntExtra("type", -1);
        super.onCreate(savedInstanceState);
        iv_content = (ImageView) findViewById(R.id.iv_content);
        if (type == ZZTConstant.WETCHAT_CUSTOMER) {
            iv_content.setBackgroundResource(R.drawable.introduction);
        } else {
            iv_content.setBackgroundResource(R.drawable.sao);
        }
    }

    @Override
    public ActionBar getActivityActionBar() {
        if (type == ZZTConstant.WETCHAT_CUSTOMER)
            return new ActionBar(this.getString(R.string.capture_title_customer), true);
        else
            return new ActionBar(this.getString(R.string.capture_title_merchant), true);
    }
}
